﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QStandardItemModel>
#include "pdflib.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_btnSavePdf_clicked();

private:
    void initData();
    void writeConfig();
    void readConfig();
    bool SetPDFTitle(PDF *p, int orientation, const QString &title, const QString &subTitle, const QString &code);
    void approvedRejectedOrderListHeader(PDF *p, float x, float & y);
    void approvedRejectedOrderListContent(PDF *p, const QStringList & list, float x, float & y);
private:
    Ui::MainWindow *ui;
    QStandardItemModel *mModel;
    QVector <QStringList> m_vecApprovedOrderListOr4;

};
#endif // MAINWINDOW_H
